package com.itheima.thread.Demo2;

public class Demo2 {
    public static void main(String[] args) {
        MyRunnable mr = new MyRunnable();
        Thread t = new Thread(mr);
        t.setName("线程1");
        Thread t2 = new Thread(mr);
        t2.setName("线程2");
        t.start();
        t2.start();
    }
}
